package com.sugar.follow.up.module.business.controller.admin.questionnairerecord.vo;

import com.sugar.follow.up.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.sugar.follow.up.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 问卷发起记录分页 Request VO")
@Data
public class QuestionnaireRecordPageReqVO extends PageParam {

    @Schema(description = "问卷模板ID", example = "4874")
    private Long templateId;

    @Schema(description = "用户ID", example = "29584")
    private Long[] userId;

    @Schema(description = "医生ID", example = "6401")
    private String adminUserId;

    @Schema(description = "问卷标题")
    private String title;

    @Schema(description = "问卷开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] beginTime;

    @Schema(description = "问卷结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endTime;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}